char repeatedCharacter(char* s) {

	bool arr[26] = { 0 };
	while (*s) {
		if (arr[*s - 'a'] == 1) {
			return *s;
		}
		arr[*s - 'a'] = 1;
		s++;
	}	
	return ' ';
}